/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.mallsite.modules.shop.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 店铺Entity
 * @author ruyang
 * @version 2020-12-08
 */
@Table(name="ms_shop", alias="a", columns={
		@Column(name="shop_id", attrName="shopId", label="编号", isPK=true),
		@Column(name="shop_name", attrName="shopName", label="供应商", queryType=QueryType.LIKE),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class Shop extends DataEntity<Shop> {
	
	private static final long serialVersionUID = 1L;
	
	private String shopId;		// 编号
	private String shopName;		// 供应商
	
	public Shop() {
		this(null);
	}

	public Shop(String id){
		super(id);
	}
	
	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}
	
	@Length(min=0, max=50, message="供应商长度不能超过 50 个字符")
	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	
}